<?php


namespace App\Http\Requests\Api\System;


use App\Http\Requests\BaseFormRequest;

class CreateSuggestionRequest extends BaseFormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'captcha_code' => 'required|captcha_api:' . $this->get('captcha_key') . ',api',
            'content' => ['required']
        ];
    }


    public function messages()
    {
        return [
            'captcha_code.captcha_api' => '验证码错误',
            'content.required' => '内容必填'
        ];
    }
}